#ifndef ADMIN_H
#define ADMIN_H

#include <QWidget>
#include "usermana.h"
#include "bookmana.h"
#include "bormane.h"
#include "hismana.h"
#include <QStandardItemModel>
#include<QSqlDatabase>

namespace Ui {
class Admin;
}

class Admin : public QWidget
{
    Q_OBJECT

public:
//    explicit Admin(QWidget *parent = nullptr);
    explicit Admin(QSqlDatabase &d);
    ~Admin();

private slots:
    void on_backBut_clicked();

    void on_closeBut_clicked();

private:
    Ui::Admin *ui;
    void initPage();
    UserMana *userManePage;
    bookMana *bookManePage;
    borMane *borManePage;
    HisMana *hisManePage;
    QSqlDatabase &db;
    void dealMeun();
};

#endif // ADMIN_H
